package cn.rkylin.oms.warehouse.shiporder.adapter;

import cn.rkylin.apollo.common.util.BeanUtils;
import cn.rkylin.oms.item.adapter.ItemAdapter;

public class ShiporderFactory {

    public static ShiporderAdapter getAdapter(String shopType) {
        ShiporderAdapter shiporderAdapter = null;
        switch (shopType) {
            case "淘宝分销":
                shiporderAdapter = BeanUtils.getBean("fenXiaoShiporderAdapter");
                break;
            case "京东":
                shiporderAdapter = BeanUtils.getBean("jdShiporderAdapter");
                break;
            case "苏宁":
                shiporderAdapter = BeanUtils.getBean("suningShiporderAdapter");
                break;
            case "商城":
                shiporderAdapter = BeanUtils.getBean("yiShiporderAdapter");
                break;
            default:
                break;
        }
        return shiporderAdapter;
    }
}
